//创建store applyMiddleware是使用中间件
import { createStore, applyMiddleware} from  'redux'
import thunk from 'redux-thunk'
//导入Reduxcer
import reducerAll from './reducer'
//引入redux-devtools-extension库用于开启Redux插件
import { composeWithDevTools } from 'redux-devtools-extension'
const store = createStore(reducerAll,composeWithDevTools(applyMiddleware(thunk)));
export default store;
